package se.sll.itintegration.catalogue.gui.data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

/**
 *
 * @author Jiri Uosukainen
 */
@SuppressWarnings("PMD.UnusedPrivateField")
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "emailAddress")
public class EmailAddress {
    
    public EmailAddress() {        
    }

    public EmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    @NotBlank
    @Email
    @XmlElement(name="email")
    private String emailAddress;
    
}
